package com.ruoyi.printer_auth_records.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.printer_auth_records.mapper.PrinterAuthRecordsMapper;
import com.ruoyi.printer_auth_records.domain.PrinterAuthRecords;
import com.ruoyi.printer_auth_records.service.IPrinterAuthRecordsService;

/**
 * 打印机认证记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-28
 */
@Service
public class PrinterAuthRecordsServiceImpl implements IPrinterAuthRecordsService 
{
    @Autowired
    private PrinterAuthRecordsMapper printerAuthRecordsMapper;

    /**
     * 查询打印机认证记录
     * 
     * @param id 打印机认证记录主键
     * @return 打印机认证记录
     */
    @Override
    public PrinterAuthRecords selectPrinterAuthRecordsById(Long id)
    {
        return printerAuthRecordsMapper.selectPrinterAuthRecordsById(id);
    }

    /**
     * 查询打印机认证记录列表
     * 
     * @param printerAuthRecords 打印机认证记录
     * @return 打印机认证记录
     */
    @Override
    public List<PrinterAuthRecords> selectPrinterAuthRecordsList(PrinterAuthRecords printerAuthRecords)
    {
        return printerAuthRecordsMapper.selectPrinterAuthRecordsList(printerAuthRecords);
    }

    /**
     * 新增打印机认证记录
     * 
     * @param printerAuthRecords 打印机认证记录
     * @return 结果
     */
    @Override
    public int insertPrinterAuthRecords(PrinterAuthRecords printerAuthRecords)
    {
        return printerAuthRecordsMapper.insertPrinterAuthRecords(printerAuthRecords);
    }

    /**
     * 修改打印机认证记录
     * 
     * @param printerAuthRecords 打印机认证记录
     * @return 结果
     */
    @Override
    public int updatePrinterAuthRecords(PrinterAuthRecords printerAuthRecords)
    {
        return printerAuthRecordsMapper.updatePrinterAuthRecords(printerAuthRecords);
    }

    /**
     * 批量删除打印机认证记录
     * 
     * @param ids 需要删除的打印机认证记录主键
     * @return 结果
     */
    @Override
    public int deletePrinterAuthRecordsByIds(Long[] ids)
    {
        return printerAuthRecordsMapper.deletePrinterAuthRecordsByIds(ids);
    }

    /**
     * 删除打印机认证记录信息
     * 
     * @param id 打印机认证记录主键
     * @return 结果
     */
    @Override
    public int deletePrinterAuthRecordsById(Long id)
    {
        return printerAuthRecordsMapper.deletePrinterAuthRecordsById(id);
    }
}
